<template>
  <div>
    <h2>组件2</h2>
     <hr>
    {{ this.$store.state.age }}
    <button @click="changeName">changeName</button>
  </div>
</template>
<script>
export default {
  methods: {
    changeName() {
      this.$store.commit("changeNameMutation","李雷雷")
    }
  }
}
</script>